package com.org.flow.core.exception;

import com.yomahub.liteflow.exception.LiteFlowException;

/**
 * 类描述：【编排式的规则引擎框架】自定义异常
 *
 * @version 1.0.0
 * @since 1.0.0  2024-02-26 09:38:36
 */
public class FlowBusException extends LiteFlowException {

    private static final String ERR_CODE_BASE = "5001001";

    public FlowBusException(String code, String message) {
        super(code, message);
    }


    public FlowBusException(String message) {
        super(ERR_CODE_BASE, message);
    }

    /**
     * 不写入堆栈信息，提高性能（* 【编排式的规则引擎框架】  liteflow.print-execution-log=true 时 还是会打印堆栈  是父级打印的）
     */
    @Override
    public Throwable fillInStackTrace() {
        return this;
    }
}
